package month3.day29;

public class Crocodile extends Pet {
    public Crocodile() {
    }

    public Crocodile(String name, int health, int love, String sex) {
        super(name, health, love, sex);
    }

    @Override
    public void print() {
        System.out.println("鳄鱼"+super.getName()+"非常凶猛！");
        super.print();
    }
    public void climb(){
        System.out.println("鳄鱼"+this.getName()+"在地上爬行！");
    }
}
